package com.spring.dao.blog;

import java.util.List;

import com.spring.bean.blog.Blog;
import com.spring.bean.page.Page;
import com.spring.bean.page.PageView;
import com.spring.exception.DaoException;

public interface BlogDao {

	public boolean insert(Blog blog) throws DaoException;

	public boolean update(Blog blog) throws DaoException; 

	public boolean delete(Integer id) throws DaoException;

	public Blog getById(Integer id) throws DaoException;

	public List<Blog> queryForList() throws DaoException;

	public PageView<Blog> queryForPage(Page page) throws DaoException;
}